package jp.co.sn.mml.pojo.tdiphkskk;


public class TdiphkskkId implements java.io.Serializable { 

	//報告書番号
	private Long hksNo;
	//検査報告区分
	private Long ksHkKbn;
	//行番号
	private Long seq;

	/** default constructor */
	public TdiphkskkId(){

	}

	/** full constructor */
	public TdiphkskkId(Long hksNo,Long ksHkKbn,Long seq){
		this.hksNo = hksNo;
		this.ksHkKbn = ksHkKbn;
		this.seq = seq;
	}

	//Property accessors
	public Long getHksNo(){
		return this.hksNo;
	}

	public void setHksNo(Long hksNo){
		this.hksNo=hksNo;
	}

	public Long getKsHkKbn(){
		return this.ksHkKbn;
	}

	public void setKsHkKbn(Long ksHkKbn){
		this.ksHkKbn=ksHkKbn;
	}

	public Long getSeq(){
		return this.seq;
	}

	public void setSeq(Long seq){
		this.seq=seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TdiphkskkId))
			return false;

		TdiphkskkId castOther = (TdiphkskkId) other;

		return ((this.getHksNo() ==  castOther.getHksNo())
				||(this.getHksNo()!=null && castOther.getHksNo() !=null 
					&& castOther.getHksNo() !=null 
					&& this.getHksNo().equals(castOther.getHksNo())))
			&& ((this.getKsHkKbn() ==  castOther.getKsHkKbn())
				||(this.getKsHkKbn()!=null && castOther.getKsHkKbn() !=null 
					&& castOther.getKsHkKbn() !=null 
					&& this.getKsHkKbn().equals(castOther.getKsHkKbn())))
			&& ((this.getSeq() ==  castOther.getSeq())
				||(this.getSeq()!=null && castOther.getSeq() !=null 
					&& castOther.getSeq() !=null 
					&& this.getSeq().equals(castOther.getSeq())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getHksNo() == null ? 0 : this.getHksNo().hashCode());
		result = 37 * result
				+ (getKsHkKbn() == null ? 0 : this.getKsHkKbn().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		return result;
	}

}